package com.bbchond.mapper;

import java.util.List;

import com.bbchond.pojo.VideoInfo;
import org.apache.ibatis.annotations.Mapper;

import com.bbchond.pojo.*;

@Mapper
public interface UserMapper {

	List<User> getUsers();
	List<BBSTopic> getBBSTopics();
	UserPunch getUserPunch(String userAccount);
	UserVerify getUserVerify(UserVerify userVerify);
	Integer UserRegister(User user);
	int updatePassword(User user);
	List<BBSReply> getBBSReply(int bbs_id);
	Integer ReplyPost(BBSReply bbsReply);
	User getUserName(String userAccount);
	int BBSPost(BBSTopic bbsTopic);
	List<BBSTopic> getCharge();
	Card getCardInfo(String userAccount);
	int registCard(PickCard pickCard);
	int lostCard(String userAccount);
	List<CardCost> cardCost(String userAccount, String date);
	List<PickCard> getLostCard();
	List<PickCard> getLostCardByAccount(String userAccount);
	List<DorScore> getScoreInfoByAccount(String userAccount);
	int addFeedbackInfo(FeedBack feedBack);
	int addPlaceChange(ChangePlace changePlace);
	int addCheckIn(CheckInInfo checkInInfo);
	int addCheckOut(CheckOutInfo checkOutInfo);
	int addDetentionInfo(DetentionInfo detentionInfo);
	StuInfo getStuInfo(String userAccount);

	/**
	 * 云课堂部分后台接口
	 * @return 用于逻辑判断是否修改成功
	 */
	List<VideoInfo> getVideoInfos();
	List<VideoInfo> getGoodVideoInfo();
	List<VideoReply> getReplyInfo(int videoId);
	List<VideoInfo> getGoodVideoInfoByType(String typeName);
	VideoInfo getVideoInfo(int videoId);
	ClassUser userVerify(ClassUser classUser);
	ClassUser userInfo(String userAccount);
	Teacher teacherInfo(String teacherName);
	List<Teacher> getAllTeacherInfo();
	int videoReplyPost(VideoReply videoReply);
	int repairPost(RepairInfo repairInfo);
	int classRegister(ClassUser classUser);
	int updateClassUser(ClassUser classUser);
	List<UserCollection> getCollectionInfo(String userAccount);
	int addCollectionInfo(UserCollection collection);
	int cancelCollectionInfo(UserCollection collection);
	int addCartInfo(UserCart userCart);
	List<VideoInfo> getCartVideo(String userAccount);
	UserCollection isCollection(UserCollection userCollection);
	UserCart isInCart(UserCart userCart);
	List<VideoInfo> getCollectionVideo(String userAccount);
	List<OderInfo> getOrderInfo(String userAccount);
	int addClassFeedBack(ClassFeedBack classFeedBack);

	/**
	 * 红木家具
	 * @return 需求信息
	 */
	List<KnowInfo> getKnowInfo();
	List<RedWood> getRedWoodInfo();
	List<BrandInfo> getBrandInfo();
	List<FurnitureItem> getFurniture();
	FurnitureCollection isInCollection(FurnitureCollection collection);
	List<FurnitureCollection> getFurnitureCollectionInfo(String userAccount);
	int addFurnitureCollectionInfo(FurnitureCollection collection);
	int cancelFurnitureCollectionInfo(FurnitureCollection collection);
	int furnitureRegister(FurnitureUser user);
	FurnitureUser getUserInfoByName(String userAccount);
	int updateUserInfo(FurnitureUser user);
	int addOrderInfo(FurnitureOrder order);
}
